﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Olympic_email_to_future.Module;
using Olympic_email_to_future.IBLL;
using System.Data.SqlClient;

namespace Olympic_email_to_future.BLL
{
    class FeedbackBLL : IFeedbackBLL
    {
        public static IDAL.IFeedbackInfo dal = DALFactory.DataAccess.CreateFeedbackInfo();
        public bool feedback(FeedbackInfo fb, int id)
        {
            return dal.feedback(fb, id);
        }
        public IList<FeedbackInfo> getFeedback()
        {
            return dal.getFeedback();
        }
        public IList<FeedbackInfo> getFeedbackY()
        {
            return dal.getFeedbackY();
        }
        public IList<FeedbackInfo> getFeedbackN()
        {
            return dal.getFeedbackN();
        }
        public bool update(int id, FeedbackInfo feedbackinfo)
        {
            return dal.update(id, feedbackinfo);
        }
        public bool delete(int id, FeedbackInfo feedbackinfo)
        {
            return dal.delete(id, feedbackinfo);
        }
    }
}
